﻿using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;
using MediatR;

namespace WeatherHistory.Api.CommandsQueries.Commands.Regions.Create;

public class CreateRegionsCommandRequest : IRequest<CreateRegionsCommandResponse>
{
    [JsonIgnore]
    public long CreatorId { get; set; }
    public string? ParentRegion { get; set; } = null!;

    [Required]
    public string Name { get; set; } = null!;

    [Required]
    public double Latitude { get; set; }

    [Required]
    public double Longitude { get; set; }

    public long? RegionType { get; set; }
}